/*
 * @Date: 2022-02-18 09:54:49
 * @Author: 陶子
 * @LastEditTime: 2022-07-19 17:42:39
 * @FilePath: \jk_one-stop_pc\src\views\warehouseManagement\stockTask\outStock\outColumn.js
 * @pageName: 这是--(待出库所有的列)--页面
 */
export let columns = [
  {
    title: '任务标题',
    dataIndex: 'taskName',
    ellipsis: true,
    align: 'left',
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'taskName',
    },
  },
  {
    title: '类型',
    dataIndex: 'statusListStr',
    ellipsis: true,
    width: 110,
    scopedSlots: {
      filterDropdown: 'selectDropdown',
      filterIcon: 'selectIcon',
      customRender: 'typeName',
    },
  },
  {
    title: '物品种类',
    dataIndex: 'goodsTypeNum',
    ellipsis: true,
    width: 120,
    scopedSlots: { customRender: 'goodsTypeNumText' },
  },
  {
    title: '物品数量',
    dataIndex: 'goodsNum',
    ellipsis: true,
    width: 120,
    scopedSlots: {
      customRender: 'goodsNumText',
    },
  },
  {
    title: '计划出库日期',
    ellipsis: true,
    dataIndex: 'planStartTime',
    width: 180,
    scopedSlots: {
      filterDropdown: 'datePicker',
      filterIcon: 'dateIcon',
      customRender: 'planDate',
    },
  },
  // {
  //   fixed: 'right',
  //   title: '操作',
  //   align: 'left',
  //   dataIndex: 'actions',
  //   ellipsis: true,
  //   width: 160,
  //   scopedSlots: { customRender: 'actions' },
  // },
]


export let allColumn = [
  {
    title: '任务标题',
    dataIndex: 'taskName',
    ellipsis: true,
    align: 'left',
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'taskName',
    },
  },
  {
    title: '类型',
    dataIndex: 'statusListStr',
    ellipsis: true,
    width: 110,
    scopedSlots: {
      filterDropdown: 'selectDropdown',
      filterIcon: 'selectIcon',
      customRender: 'typeName',
    },
  },
  {
    title: '物品种类',
    dataIndex: 'goodsTypeNum',
    ellipsis: true,
    width: 120,
    scopedSlots: { customRender: 'goodsTypeNumText' },
  },
  {
    title: '物品数量',
    dataIndex: 'goodsNum',
    ellipsis: true,
    width: 120,
    scopedSlots: {
      customRender: 'goodsNumText',
    },
  },
  {
    title: '计划出库日期',
    ellipsis: true,
    dataIndex: 'planStartTime',
    width: 180,
    scopedSlots: {
      filterDropdown: 'datePicker',
      filterIcon: 'dateIcon',
      customRender: 'planDate',
    },
  },
]


// 子表columns
export let innerColumns = [
  {
    title: '序号',
    width: 80,
    customRender: function(text, record, index) {
      return index + 1
    }
  },
  {
    title: '物品',
    dataIndex: 'goodsName',
    ellipsis: true,
    width: 150,
    scopedSlots: { customRender: 'goodsName', },
  },
  {
    title: '总应出',
    dataIndex: 'goodsNum',
    ellipsis: true,
    width: 120,
    scopedSlots: { customRender: 'goodsNum', },
  },
  {
    title: '已出库合格品',
    dataIndex: 'alreadyQualifiedNum',
    ellipsis: true,
    width: 120,
    scopedSlots: { customRender: 'alreadyQualifiedNum', },
  },
  {
    title: '已出库报废品',
    ellipsis: true,
    dataIndex: 'alreadyScrapNum',
    width: 120,
    scopedSlots: { customRender: 'alreadyScrapNum', },
  },
  {
    title: '待出库',
    ellipsis: true,
    dataIndex: 'pendingNum',
    width: 120,
    scopedSlots: { customRender: 'pendingNum', },
  },
  {
    fixed: 'right',
    title: '操作',
    align: 'left',
    dataIndex: 'action',
    ellipsis: true,
    width: 150,
  },
]
